package com.pzhu.acargid.doc;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pzhu.acargid.domain.Doc;
import com.pzhu.acargid.vo.VO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;

/**
 * @author Lenovo
 * @description 针对表【doc】的数据库操作Service实现
 * @createDate 2023-08-13 15:48:26
 */
@Service
public class DocServiceImpl extends ServiceImpl<DocMapper, Doc> implements DocService {
    @Autowired
    private DocMapper docMapper;

    @Override
    public boolean removed(Integer userid, String type, List<Integer> ids) {
        return docMapper.removed(userid, type, ids) > 0;
    }

    @Override
    public boolean restore(Integer userid, Integer docid) {
        return docMapper.restore(userid, docid) > 0;
    }

    @Override
    public VO getbyid(Integer userid, String id, String model) {
        return docMapper.getbyid(userid, id, model);
    }
}




